package com.example.demo_spring.ioc_di.spring;

import org.springframework.stereotype.Component;

@Component
public class Customer {
    private String mName;

    public Customer(){
        System.out.println("Constructor: [spring] Customer");
    }

    public void setName(String name) {
        mName = name;
    }

    public void displayInfo() {
        System.out.println("Hello: "+ mName);
    }
}
